.class Lcom/kuguo/ad/t;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/kuguo/ad/q;


# direct methods
.method constructor <init>(Lcom/kuguo/ad/q;)V
    .locals 0

    iput-object p1, p0, Lcom/kuguo/ad/t;->a:Lcom/kuguo/ad/q;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 10

    const/4 v9, 0x0

    const-string v0, "alarm handle --- \t"

    invoke-static {v0}, Lcom/kuguo/ad/a;->a(Ljava/lang/String;)V

    const-string v0, "android__log"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "alarm handle ++++ thread name ---------- "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Thread;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/kuguo/c/a;->a(Ljava/lang/String;Ljava/lang/Object;)V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-eqz v0, :cond_0

    check-cast v0, Lcom/kuguo/ad/o;

    new-instance v1, Lcom/kuguo/ad/ag;

    invoke-direct {v1, p0, v0}, Lcom/kuguo/ad/ag;-><init>(Lcom/kuguo/ad/t;Lcom/kuguo/ad/o;)V

    new-instance v2, Lcom/kuguo/a/d;

    iget-object v3, v0, Lcom/kuguo/ad/o;->q:Ljava/lang/String;

    iget-object v4, p0, Lcom/kuguo/ad/t;->a:Lcom/kuguo/ad/q;

    invoke-static {v4}, Lcom/kuguo/ad/q;->a(Lcom/kuguo/ad/q;)Landroid/content/Context;

    move-result-object v4

    const-string v5, "icon.png"

    iget v6, v0, Lcom/kuguo/ad/o;->h:I

    invoke-static {v4, v5, v6}, Lcom/kuguo/ad/a;->b(Landroid/content/Context;Ljava/lang/String;I)Ljava/io/File;

    move-result-object v4

    invoke-direct {v2, v3, v4, v9}, Lcom/kuguo/a/d;-><init>(Ljava/lang/String;Ljava/io/File;I)V

    iget-object v3, p0, Lcom/kuguo/ad/t;->a:Lcom/kuguo/ad/q;

    invoke-static {v3}, Lcom/kuguo/ad/q;->a(Lcom/kuguo/ad/q;)Landroid/content/Context;

    move-result-object v3

    invoke-static {v3, v2, v1}, Lcom/kuguo/ad/r;->a(Landroid/content/Context;Lcom/kuguo/a/d;Lcom/kuguo/a/c;)V

    iget-object v1, v0, Lcom/kuguo/ad/o;->r:Ljava/lang/String;

    const-string v2, ";"

    invoke-static {v1, v2}, Lcom/kuguo/ad/a;->a(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    array-length v2, v1

    :goto_0
    move v3, v9

    :goto_1
    if-ge v3, v2, :cond_0

    new-instance v4, Lcom/kuguo/a/d;

    aget-object v5, v1, v3

    iget-object v6, p0, Lcom/kuguo/ad/t;->a:Lcom/kuguo/ad/q;

    invoke-static {v6}, Lcom/kuguo/ad/q;->a(Lcom/kuguo/ad/q;)Landroid/content/Context;

    move-result-object v6

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, ".png"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    iget v8, v0, Lcom/kuguo/ad/o;->h:I

    invoke-static {v6, v7, v8}, Lcom/kuguo/ad/a;->b(Landroid/content/Context;Ljava/lang/String;I)Ljava/io/File;

    move-result-object v6

    invoke-direct {v4, v5, v6, v9}, Lcom/kuguo/a/d;-><init>(Ljava/lang/String;Ljava/io/File;I)V

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/kuguo/a/d;->a(Ljava/lang/Object;)V

    iget-object v5, p0, Lcom/kuguo/ad/t;->a:Lcom/kuguo/ad/q;

    invoke-static {v5}, Lcom/kuguo/ad/q;->a(Lcom/kuguo/ad/q;)Landroid/content/Context;

    move-result-object v5

    const/4 v6, 0x0

    invoke-static {v5, v4, v6}, Lcom/kuguo/ad/r;->a(Landroid/content/Context;Lcom/kuguo/a/d;Lcom/kuguo/a/c;)V

    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_0
    return-void

    :cond_1
    move v2, v9

    goto :goto_0
.end method
